package com.bqnxzz.ywiigame.nativeInterface;

/**
 * Created by win 10 on 2018/8/2.
 * <p>
 * MainActivity.launcher_s.callExternalInterface(JSCall.shareCancel, "message from native");
 */
public class JSCall {

    /**
     * app缓存的数据
     * s:完整的字符串
     */
    public static String fullCache = "fullCache";

    /**
     * 获取到Global.onEvent消息
     * s:完整的字符串
     */
    public static String recieveGlobalEvent = "recieveGlobalEvent";

    /**
     * 游戏包下载进度
     * s:{
     *      gameId:string,
     *      progress:number,0-100, 101-解压中,102-解压完成, -1下载失败
     * }
     */
    public static String gameDownloadProgressEvent = "gameDownloadProgressEvent";

    /**
     * app内键盘弹出
     * s:
     * {
     *      offsetY:number,
     *      maxHeight:number
     * }
     */
    public static String layoutWithKeyboard = "layoutWithKeyboard";

    /**
     * app内键盘no弹出
     */
    public static String layoutWithNoKeyboard = "layoutWithNoKeyboard";

}
